import request from '@/utils/request'

export function getNodeList(query) {
  return request({
    url: '/foundation/node/getList',
    method: 'post',
    data: query
  })
}
export function getNodeUsableList(data) {
  return request({
    url: '/foundation/node/getUsableList',
    method: 'post',
    data: data
  })
}


export function getNodeDetail(id) {
  return request({
    url: '/foundation/node/getDetail',
    method: 'post',
    data: id
  })
}

export function saveNode(id) {
  return request({
    url: '/foundation/node/save',
    method: 'post',
    data: id
  })
}

export function removeNodeByID(id) {
  return request({
    url: '/foundation/node/remove',
    method: 'post',
    data: id
  })
}

export function changeStatusByNodeID(formdata) {
  return request({
    url: '/foundation/node/change-status',
    method: 'post',
    data: formdata
  })
}

export function getNodeAvabile(query) {
  return request({
    url: '/foundation/node/getAvailable',
    method: 'post',
    data: query
  })
}

